cmake_minimum_required(VERSION 3.17)
project(nettop)

set(CMAKE_CXX_STANDARD 14)
set(
        SOURCES
        src/settings.cpp
        src/name_res.cpp
        src/async_log.cpp
        src/packet_stats.cpp
        src/proc.cpp
        src/cap_mgr.cpp
        src/main.cpp
)
add_executable(${PROJECT_NAME} ${SOURCES})
target_include_directories(${PROJECT_NAME}
        PRIVATE  ${PROJECT_SOURCE_DIR}/include)
target_link_libraries(${PROJECT_NAME} pthread )
target_link_libraries(${PROJECT_NAME} pcap)
target_link_libraries(${PROJECT_NAME} curses )